import boot from "$pages/boot.js";
import dashboard from "./dashboard.vue";

const routes = [];

routes.push({
  path: "/view/dashboard/iframe",
  component: () => import("./complex-view/iframe-view/iframe-view.vue"),
});

routes.push({
  path: "/view/dashboard/todo",
  component: () => import("./todo/todo.vue"),
});

routes.push({
  path: "/view/dashboard/schema",
  component: () => import("./complex-view/schema-view/schema-view.vue"),
});

routes.push({
  path: "/view/dashboard/sider",
  component: () => import("./complex-view/sider-view/sider-view.vue"),
  children: [
    {
      path: "/view/dashboard/sider/iframe",
      component: () => import("./complex-view/iframe-view/iframe-view.vue"),
    },
    {
      path: "/view/dashboard/sider/todo", 
      component: () => import("./todo/todo.vue"),
    },
    {
      path: "/view/dashboard/sider/schema",
      component: () => import("./complex-view/schema-view/schema-view.vue"),
    },
  ],
});

routes.push({
  path: "/view/dashboard/sider/:chapters+",
  component: () => import("./complex-view/sider-view/sider-view.vue"),
});
boot(dashboard, { routes });
